<?php if ($this->pageCount): ?>

<div class="pagination align-right">


<ul>


	<?php if (isset($this->previous)): ?>
	  <li><a href="<?php echo $this->url(array('page' => $this->first)); ?>">
	   	<img src="/media/backend/icons/first.png" />
	  </a></li>
	<?php else: ?>
	  <li><img src="/media/backend/icons/first.png" /></li>
	<?php endif; ?>
	 
	
	<?php if (isset($this->previous)): ?>
	  <li><a href="<?php echo $this->url(array('page' => $this->previous)); ?>">
	    <img src="/media/backend/icons/first.png" />
	  </a></li>
	<?php else: ?>
	  <li><img src="/media/backend/icons/first.png" /></li>
	<?php endif; ?>
	 
	 
	<?php foreach ($this->pagesInRange as $page): ?>
	    <li><a href="<?php echo $this->url(array('page' => $page)); ?>" class="number<?php echo ($page != $this->current)?'': ' current'?>">
	        <?php echo $page; ?>
	    </a></li>
	<?php endforeach; ?>
	
	<?php if (isset($this->next)): ?>
	  <li><a href="<?php echo $this->url(array('page' => $this->next)); ?>">
	   	<img src="/media/backend/icons/last.png" />
	  </a></li>
	<?php else: ?>
	  <li><img src="/media/backend/icons/last.png" /></li>
	<?php endif; ?>
	 
	
	<?php if (isset($this->next)): ?>
	  <li><a href="<?php echo $this->url(array('page' => $this->last)); ?>">
	    <img src="/media/backend/icons/last.png" />
	  </a></li>
	<?php else: ?>
	  <li><img src="/media/backend/icons/last.png" /></li>
	<?php endif; ?>
</ul>
 
 <br class="clear" />
 <div class="mt10">
 
 	<span>
 		<?php echo $this->firstItemNumber; ?> - <?php echo $this->lastItemNumber; ?> z <?php echo $this->totalItemCount; ?>
 	</span>
 	<span>&bull;</span>
 	<span>
	 	wyników na stronę: 
	 	<?php foreach (array(5, 10, 25, 50, 100, 500) as $v):?>
	 		<a href="<?php echo $this->url(array('perpage'=>$v, 'page'=>null))?>"><?php echo $v?></a>
	 	<?php endforeach;?>
 	</span>
 </div>
 
</div>
<?php endif; ?>

